import { request } from "@/utils/service"
import axios from "axios"
const baseURL = import.meta.env.VITE_BASE_API

/** 注册 */
export function createRegDataApi(data: any) {
  return request({
    url: "logon",
    method: "post",
    headers: {
      "Content-Type": "multipart/form-data"
    },
    data
  })
}

/**获取验证码 */
export function getPhoneCode(data: any) {
  return axios({
    url: `${baseURL}/logon/sendCode`,
    method: "post",
    headers: {
      "Content-Type": "multipart/form-data"
    },
    data
  })
}
